<?php

if (!defined('WPSR_ACCESS')) { exit; }


/**
 * WP Showroom Admin Page - Upload Pictures
 *
 * @package
 */


require_once "wpsr.admin.php";
require_once "wpsr.file.php";


global $user_ID, $wpdb;


$wpsr = new WPsrFile;
$wpsr->WPsrUser();

$wpsr->checkDir();

$files = $wpsr->getFiles($user_ID);
$wfiles = $wpsr->getWaitingFiles($user_ID);

$wpsr->getAdminMessage();
?>

<div class="wrap">
	
<?php
	if ( count($wpsr->error) < 1 ) {
		$wpsr->adminPictureOutput($user_ID, $files, $wfiles);
	}
	$wpsr->adminFooter();
?>

</div>